/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
A java class that store an instructor's info
@author Loc Phan
@version 1.01 2008-11-26
*/
package edu.sjsu.cs.phan.hw6;

public class Instructor extends Person
{
   /**Constructs an instructor
    * 
    * @param name Instructor's name
    * @param birthyear Instructor's year of birth
    * @param asalary Instructor's salary
    */
   public Instructor(String name, int birthyear,int asalary)
   {
      super(name, birthyear);
      Salary = asalary;
   }
   /**Returns salary
    * 
    * @return Salary
    */
   public int getSalary()
   {
      return Salary;
   }
   /**Returns a greeting string
    * 
    */
   public String toString()
   {
      return "My name is "+super.getName()+" and my salary is "+Salary;
   }
   private int Salary;

}
